hysop.operator.flowrate_correction module¶
@file flowrate_correction.py
- class hysop.operator.flowrate_correction.FlowRateCorrection(velocity, vorticity, dt, flowrate, variables, implementation=None, **kwds)[source]¶
Bases:
ComputationalGraphNodeFrontend
Update velocity field (solution of Poisson equation) in order to prescribe proper mean flow and ensure the desired inlet flowrate.
- Parameters:
velocity (field) – input velocity
vorticity (field) – input vorticity
flowrate (ScalarParameter, optional) – penalization factor applied to all geometries.
variables (dict) – dictionary of fields as keys and topologies as values.
dt (ScalarParameter) – Timestep parameter that will be used for time integration.
implementation (Implementation, optional, defaults to None) – target implementation, should be contained in available_implementations(). If None, implementation will be set to default_implementation().
kwds – Keywords arguments that will be passed towards implementation poisson operator __init__.